<?php

// remove the following lines when in production mode
//defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
//defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

// Don't change if you are not sure
define('CMS_VERSION','1.0');
define('ROOT_FOLDER',dirname(__FILE__));

//You need to specify the path to CORE FOLDER CORRECTLY
define('FRAMEWORK_FOLDER',dirname(ROOT_FOLDER).DIRECTORY_SEPARATOR.'framework');
define('LIBRARIES_FOLDER',ROOT_FOLDER.DIRECTORY_SEPARATOR.'libraries');
define('WIDGETS_FOLDER',LIBRARIES_FOLDER.DIRECTORY_SEPARATOR.'widgets');
define('MODELS_FOLDER',ROOT_FOLDER.DIRECTORY_SEPARATOR.'models');
define('MEDIA_FOLDER',ROOT_FOLDER.DIRECTORY_SEPARATOR.'media');
define('FILE_FOLDER',MEDIA_FOLDER.DIRECTORY_SEPARATOR.'files');
define('FRONTEND',ROOT_FOLDER.DIRECTORY_SEPARATOR.'protected');
define('BACKEND',ROOT_FOLDER.DIRECTORY_SEPARATOR.'administrator'.DIRECTORY_SEPARATOR.'protected');
define('PATH_SITE',ROOT_FOLDER.DIRECTORY_SEPARATOR);
define('PATH_ADMINISTRATOR',ROOT_FOLDER.DIRECTORY_SEPARATOR.'administrator');

// change the following paths if necessary
$yii=FRAMEWORK_FOLDER.'/yii.php';
$globals=LIBRARIES_FOLDER.'/globals.php';
$constant=LIBRARIES_FOLDER.'/constant.php';
$config=FRONTEND.'/config/main.php';

require_once($yii);
require_once($globals);
require_once($constant);

Yii::createWebApplication($config)->run();